package cn.edu.neu.studentmsg_java.service.impl;

import cn.edu.neu.studentmsg_java.dao.TRDao;
import cn.edu.neu.studentmsg_java.model.TR;
import cn.edu.neu.studentmsg_java.service.TRService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TRServiceImpl implements TRService {
    @Autowired
    private TRDao trDao;

    @Override
    public List<String> findRankName() {
        return trDao.selectRankName();
    }

    @Override
    public List<TR> findAll() {
        return trDao.selectAll();
    }
}
